package ca.ubc.icapture.genapha.forms;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.util.LabelValueBean;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;

import icapture.beans.Format;
import icapture.genapha.GenotypeToolsManager;


/**
 * Created by IntelliJ IDEA.
 * User: btripp
 * Date: Sep 19, 2006
 * Time: 1:36:05 PM
 * To change this template use File | Settings | File Templates.
 */
public class GenerateAnalysisFileForm   extends ActionForm {
    private String snpList;
    private String geneList;
    private String action;
    private String phenotype;
    private String cohort;
    private String format;
    private ArrayList<LabelValueBean> phenotypeList = new ArrayList<LabelValueBean>();
    private ArrayList<LabelValueBean> cohortList = new ArrayList<LabelValueBean>();
    private ArrayList<LabelValueBean> formatList = new ArrayList<LabelValueBean>();

    public GenerateAnalysisFileForm() {}

    public ActionErrors validate( ActionMapping mapping, HttpServletRequest request ) {
        ActionErrors errors = new ActionErrors();
        //errors.add("values",new ActionError("error.entry.required"));
        return errors;
    }

    public void reset(ActionMapping mapping, HttpServletRequest request) {
        snpList = new String();
        geneList = new String();
        phenotypeList.clear();
    }

    public String getSnpList() {
        return snpList;
    }

    public void setSnpList(String snpList) {
        this.snpList = snpList;
    }

    public String getGeneList() {
        return geneList;
    }

    public void setGeneList(String geneList) {
        this.geneList = geneList;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public ArrayList<LabelValueBean> getPhenotypeList() {
        return phenotypeList;
    }

    public void setPhenotypeList(ArrayList<LabelValueBean> phenotypeList) {
        this.phenotypeList = phenotypeList;
    }

    public String getPhenotype() {
        return phenotype;
    }

    public void setPhenotype(String phenotype) {
        this.phenotype = phenotype;
    }

    public String getCohort() {
        return cohort;
    }

    public void setCohort(String cohort) {
        this.cohort = cohort;
    }

    public String getFormat() {
        return format;
    }


    public void setFormat(String format) {
        this.format = format;
    }

     public ArrayList<LabelValueBean> getFormatList() {
        return formatList;
    }

    public void setFormatList(ArrayList<LabelValueBean> formatList) {
        this.formatList = formatList;
    }

    public ArrayList<LabelValueBean> getCohortList() {
        return cohortList;
    }

    public void setCohortList(ArrayList<LabelValueBean> cohortList) {
        this.cohortList = cohortList;
    }
}
